﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using BadmintonApp.Entity;

namespace BadmintonApp.DAO.Interface
{
    public interface IActivityDAO
    {
        /// <summary>
        /// 插入一个活动
        /// </summary>
        /// <param name="activityInfo">活动信息类</param>
        void InsertActivity(TActivityInfo activityInfo);

        /// <summary>
        /// 修改一个活动
        /// </summary>
        /// <param name="activityInfo">活动信息类</param>
        void UpdateActivity(TActivityInfo activityInfo);

        /// <summary>
        /// 删除一个活动
        /// </summary>
        /// <param name="activityID">活动ID</param>
        void DeleteActivity(int activityID);

        /// <summary>
        /// 获取所有的活动
        /// </summary>
        /// <returns>活动信息类列表</returns>
        DataSet GetAllActivity();
    }
}
